<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>租房详细信息</title>
    <link rel="stylesheet" th:href="@{/layuiadmin/layui/css/layui.css}" media="all">
    <style>
        .layui-form-label {
            width: 80px;
        }
    </style>
</head>
<body>
    <div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item" style="width: 550px">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.title}:''" type="text" name="title" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 650px">
            <label class="layui-form-label">图片</label>
            <div class="layui-input-block">
                <div class="layui-upload">
                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">

                        <div class="layui-upload-list" id="previewImg">
                            <div  th:each="image,status:${#strings.arraySplit(rentHouse?.picture,',')}">
                                <img th:src="${'http://127.0.0.1:8099/upload/rentHouse/'+image}"  style="position: relative ;left:12px; width: 95%;height: auto;margin-bottom: 10px"  th:alt="${image}"  class="layui-upload-img" />
                            </div>
                        </div>

                    </blockquote>
                </div>
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input disabled ="disabled"  th:value="${rentHouse != null}?${rentHouse.linkman}:''" type="text" name="linkman" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input disabled ="disabled"  th:value="${rentHouse != null}?${rentHouse.phone}:''" type="text" name="phone" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.email}:''" type="text" name="email" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">户型</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.houseType}:''" type="text" name="houseType"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 450px">
            <label class="layui-form-label">位置</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.location}:''" type="text" name="location"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">地区</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse?.region}" type="text" name="region"  class="layui-input">
            </div>
        </div>
        <br/>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">小区</label>
            <div class="layui-input-block">
                <input disabled ="disabled"  th:value="${rentHouse != null}?${rentHouse.housingEstate}:''" type="text" name="housingEstate"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">面积(平方米)</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.area}:''" type="text" name="area"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">价格(元/月)</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.price}:''" type="text" name="price"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">付款方式</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.priceExplain}:''" type="text" name="priceExplain"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">总楼层</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.floor}:''" type="text" name="floor"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">楼层</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.floorLevel}:''" type="text" name="floorLevel"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">租房类型</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.rentType}:''" type="text" name="rentType"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">房屋类型</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.type}:''" type="text" name="type"  class="layui-input">

            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">装修情况</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.decoration}:''" type="text" name="decoration"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">朝向</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.orientation}:''" type="text" name="orientation"  class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" style="width: 450px;height:300px ">
            <label class="layui-form-label">房源概况</label>
            <div class="layui-input-block">
                <textarea  disabled ="disabled"  style="resize: none;width: 450px; height: 300px"  th:text="${rentHouse != null}?${rentHouse.houseSituation}:''" name="houseSituation"  class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">出租要求</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.rentalDemand}:''" type="text" name="rentalDemand"  class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" >
            <label class="layui-form-label">电梯</label>
            <div class="layui-input-block">
                <input  th:checked="${rentHouse?.lift == 1}"   type="radio" name="lift" value="1" title="有">
                <input  th:checked="${rentHouse?.lift == 0}"   type="radio" name="lift" value="0" title="无" >
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">阳台</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.balcony == 1}"  type="radio" name="balcony" value="1" title="有">
                <input th:checked="${rentHouse?.balcony == 0}"  type="radio" name="balcony" value="0" title="无" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">南北通透</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.northSouth == 1}"    type="radio" name="northSouth" value="1" title="是">
                <input th:checked="${rentHouse?.northSouth == 0}"    type="radio" name="northSouth" value="0" title="否" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">洗衣机</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.washingMachine == 1}"     type="radio" name="washingMachine" value="1" title="有">
                <input th:checked="${rentHouse?.washingMachine == 0}"    type="radio" name="washingMachine" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">冰箱</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.fridge == 1}"     type="radio" name="fridge" value="1" title="有">
                <input th:checked="${rentHouse?.fridge == 0}"    type="radio" name="fridge" value="0" title="无" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">卫生间</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.toilet == 1}"     type="radio" name="toilet" value="1" title="有">
                <input th:checked="${rentHouse?.toilet == 0}"     type="radio" name="toilet" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">宽带</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.broadband == 1}"      type="radio" name="broadband" value="1" title="有">
                <input th:checked="${rentHouse?.broadband == 0}"     type="radio" name="broadband" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">抽油烟机</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.kitchenVentilator == 1}"     type="radio" name="kitchenVentilator" value="1" title="有">
                <input th:checked="${rentHouse?.kitchenVentilator == 0}"    type="radio" name="kitchenVentilator" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">燃气灶</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.gasStove == 1}"     type="radio" name="gasStove" value="1" title="有">
                <input th:checked="${rentHouse?.gasStove == 0}"    type="radio" name="gasStove" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">可做饭</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.cook == 1}"     type="radio" name="cook" value="1" title="是">
                <input th:checked="${rentHouse?.cook == 0}"    type="radio" name="cook" value="0" title="否" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">沙发</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.sofa == 1}"      type="radio" name="sofa" value="1" title="有">
                <input th:checked="${rentHouse?.sofa == 0}"     type="radio" name="sofa" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">空调</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.airConditioner == 1}"     type="radio" name="airConditioner" value="1" title="有">
                <input th:checked="${rentHouse?.airConditioner == 0}"     type="radio" name="airConditioner" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">电视</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.television == 1}"     type="radio" name="television" value="1" title="有">
                <input th:checked="${rentHouse?.television == 0}"     type="radio" name="television" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">衣柜</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.closet == 1}"     type="radio" name="closet" value="1" title="有">
                <input th:checked="${rentHouse?.closet == 0}"     type="radio" name="closet" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">床</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.bed == 1}"     type="radio" name="bed" value="1" title="有">
                <input th:checked="${rentHouse?.bed == 0}"     type="radio" name="bed" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">暖气</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.heating == 1}"     type="radio" name="heating" value="1" title="有">
                <input th:checked="${rentHouse?.heating == 0}"    type="radio" name="heating" value="0" title="无" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">热水器</label>
            <div class="layui-input-block">
                <input th:checked="${rentHouse?.calorifier == 1}"     type="radio" name="calorifier" value="1" title="有">
                <input th:checked="${rentHouse?.calorifier == 0}"     type="radio" name="calorifier" value="0" title="无" >
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">发布时间</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${rentHouse != null}?${rentHouse.publishTime}:''" type="text" name="publishTime" lay-verify="required"  autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <script th:src="@{/layuiadmin/layui/layui.js}"></script>
    <script>

        layui.use(['form','upload','jquery','layedit', 'laydate'], function () {
        });


    </script>
</body>
</html>